import { Table } from 'antd'
import React from 'react'

interface Props {
  dataSource: any[] // 数据
  columns: any[] // 列表
  components?: object
}
const GeneralTables: React.FC<Props> = (props) => {
  const { dataSource, columns, components } = props



  return (
    <>
      <Table dataSource={dataSource} columns={columns} components={components} />
    </>
  )
}

export default GeneralTables